package com.ssy.lingxi.order.model.vo.basic.request;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 判断订单拆单条件
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-07
 */
public class OrderSeparateVO implements Serializable {
    private static final long serialVersionUID = -804754515533553097L;

    /**
     * 商城Id
     */
    @NotNull(message = "商城Id要大于0")
    @Positive(message = "商城Id要大于0")
    private Long shopId;

    /**
     * 供应会员列表
     */
    @NotEmpty(message = "供应会员列表不能为空")
    @Valid
    private List<OrderSeparateVendorVO> vendors;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public List<OrderSeparateVendorVO> getVendors() {
        return vendors;
    }

    public void setVendors(List<OrderSeparateVendorVO> vendors) {
        this.vendors = vendors;
    }
}
